Skip to content

Add early termination on 2 test failures to manual_tests job#116

Merged
nhorton merged 3 commits intomainfrom
claude/update-test-job-failures-mbrPq
Jan 22, 2026
Merged

Add early termination on 2 test failures to manual_tests job#116
nhorton merged 3 commits intomainfrom
claude/update-test-job-failures-mbrPq

Conversation

@nhorton
Copy link
Contributor

@nhorton nhorton commented Jan 22, 2026

Summary

Updated the manual_tests job to implement early termination when 2 test failures occur, improving efficiency and reducing unnecessary test execution. Also emphasized that file revert and queue clearing are mandatory after each test step.

Key Changes

  • Version bump: Updated job version from 1.1.0 to 1.2.0
  • Early termination logic: Added checks to halt testing immediately if 2 tests fail, preventing execution of remaining tests
  • Mandatory cleanup: Clarified that git checkout -- manual_tests/ and rm -rf .deepwork/tmp/rules/queue/*.json must run after each test (or after early termination)
  • Updated quality criteria:
    • Added "Early termination on 2 failures" as a required quality criterion for both fire and not-fire test steps
    • Removed "All Tests Run" criterion since early termination may prevent all tests from executing
    • Clarified that cleanup is mandatory "regardless of whether tests passed or failed"
  • Documentation improvements:
    • Enhanced run_fire_tests.md with step-by-step early termination instructions
    • Enhanced run_not_fire_tests.md with early termination table and explicit cleanup requirements
    • Emphasized MANDATORY and IMPORTANT keywords for critical steps

Implementation Details

The early termination feature allows the job to fail fast when 2 tests have failed, reducing execution time and providing faster feedback. The cleanup commands (git revert and queue clear) are now explicitly marked as mandatory and must execute regardless of test outcomes to prevent cross-contamination between test runs.

- Process now halts as soon as 2 tests have failed and reports results
- Each step must revert files and clear queue after completion (mandatory)
- Updated quality criteria to reflect these requirements
- Bumped version to 1.2.0
The rules_check hook uses `git add -A` to stage files for change detection.
The previous `git checkout -- manual_tests/` only reverted the working tree
but left files staged in the index, causing cross-contamination between tests.

Fix: Use `git reset HEAD manual_tests/ && git checkout -- manual_tests/`
to properly unstage and revert all changes.
Auto-generated skill files updated by deepwork install to reflect
v1.2.1 changes (early termination on 2 failures, complete git revert).
@nhorton nhorton merged commit cbbc686 into main Jan 22, 2026
4 checks passed
@nhorton nhorton deleted the claude/update-test-job-failures-mbrPq branch January 22, 2026 19:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants